package com.luo.fragments;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by Administrator on 2017/5/8.
 */

public class Fragment2 extends Fragment {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        TextView tv = new TextView(getActivity());
        tv.setText(" %@@$***********  Fragment2   ~!~!~~~!~&*)^%   ");
        return tv;
    }


    @Override
    public void onDetach() {
        super.onDetach();
        getActivity().setResult(3);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();

    }

}
